import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios';

import RightToolbar from '@/components/RightToolbar/index.vue';
import Pagination from '@/components/Pagination/index.vue';
import ElementUI from 'element-ui';
import qs from 'qs';
import './permission'
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/styles/index.scss'
import '@/assets/styles/ruoyi.scss'
import './assets/icons'
import wangEditor from 'wangeditor';

import DictData from "@/components/DictData";
import {addDateRange, resetFormAdmin} from '@/utils/dou';

// axios.defaults.withCredentials=true;

Vue.prototype.resetFormAdmin = resetFormAdmin;
Vue.prototype.addDateRange = addDateRange;
Vue.prototype.wangEditor = wangEditor;
Vue.prototype.qs = qs;
Vue.use(ElementUI);
Vue.prototype.axios = axios;
Vue.config.productionTip = false;
Vue.component('RightToolbar', RightToolbar);
Vue.component('Pagination', Pagination);
DictData.install();

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
